package com.yonyou.brigade.order_center.controller;


import com.yonyou.brigade.order_center.model.BriTrainOrderDO;
import com.yonyou.brigade.order_center.service.IBriTrainOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-06-14
 */
@Controller
@RequestMapping("/order_center/briTrainOrder")
public class BriTrainOrderController {
    @Autowired
    @Qualifier("briTrainOrderServiceImpl")
    private IBriTrainOrderService briTrainOrderService;

    @RequestMapping(value = "getBriTrainOrderDos", method = RequestMethod.POST)
    @ResponseBody
    public List<BriTrainOrderDO> getBriFlightOrderDos(@RequestBody Map params){
        return briTrainOrderService.getBriTrainOrderDOs(params);
    }
}